package upc.jfactory.scp.bl.facade;

import java.util.List;
import upc.jfactory.scp.bl.controller.GestionarPerfilController;
import upc.jfactory.scp.jpa.bean.Postulante;

/**
 *
 * @author ${user}
 */
public class GestionarPerfilFacade {
 private static GestionarPerfilFacade _instance = null;

    public static GestionarPerfilFacade getInstance() {
        if (_instance == null)
            _instance = new GestionarPerfilFacade();

        return _instance;
    }
    public List<Postulante> listarPostulantes(String id)
    {
         GestionarPerfilController gestionarperfilController = new GestionarPerfilController();
         return gestionarperfilController.damepostulante(id);
    }
    public void Guardar(Postulante postulante){
           GestionarPerfilController gestionarperfilController = new GestionarPerfilController();
           gestionarperfilController.Guardar(postulante);
    }
        public void Crear(Postulante postulante){
           GestionarPerfilController gestionarperfilController = new GestionarPerfilController();
           gestionarperfilController.Crear(postulante);
    }
   public Postulante damepostulantexid(int id){
    GestionarPerfilController gestionarperfilController = new GestionarPerfilController();
    return gestionarperfilController.damepostulantexid(id);
   }
            public boolean BuscarPostulanteIgual(int id){
GestionarPerfilController gestionarperfilController = new GestionarPerfilController();
return  gestionarperfilController.BuscarPostulanteIgual(id);
            }
}
